﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_Postear : System.Web.UI.Page
{
    /// <summary>
    /// Carga del combo de categorias del post
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        cmbCategoriasPost.Items.Clear();
        cmbCategoriasPost.DataTextField = "desc_categoria";
        cmbCategoriasPost.DataValueField = "id_categoria_post";


        CategoriaPostServices CategoriasPostServices = new CategoriaPostServices();

        cmbCategoriasPost.DataSource = CategoriasPostServices.ObtenerCategoriasPost();
        cmbCategoriasPost.DataBind();

        CategoriasPostServices = null;
        

    }
}